package br.ufmg.ubicomp.droidguide.common;

import br.ufmg.ubicomp.droidguide.communication.ConnectivityState;

public class Device extends DroidGuideEntity{

	private Location location;
	private DroidGuideUser user;
	private Double batteryLevel;
	private ConnectivityState conState;
	private static Device theDevice;
	
	private Device()
	{
		
	}
	
	public static Device getInstance()
	{
		if (theDevice == null)
		{
			theDevice = new Device();
			theDevice.setLocation(new Location());
		}
		return theDevice;
	}
	
	public Double getBatteryLevel() {
		return batteryLevel;
	}
	public void setBatteryLevel(Double batteryLevel) {
		this.batteryLevel = batteryLevel;
	}
	public ConnectivityState getConState() {
		return conState;
	}
	public void setConState(ConnectivityState conState) {
		this.conState = conState;
	}

	public Location getLocation() {
		return location;
	}
	public void setLocation(Location location) {
		this.location = location;
	}
	public DroidGuideUser getUser() {
		return user;
	}
	public void setUser(DroidGuideUser user) {
		this.user = user;
	}
	
	
}
